package com.demo.qqcommon;

import java.io.Serializable;

/**
 * @author gy
 * @date 2022/5/5
 */
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 发送者
     */
    private String sender;
    /**
     * 接收者
     */
    private String getter;
    /**
     * 发送内容
     */
    private String content;
    /**
     * 发送时间
     */
    private String sentTime;
    /**
     * 消息类型 非常重要
     * 在接口中定义消息类型
     */
    private String msgType;

    /**
     * 进行扩展和文件相关的成员
     */
    private byte[] fileBytes;
    /**
     * 文件长度
     */
    private int fileLen = 0;
    /**
     * 文件传输到哪里
     */
    private String target;
    /**
     * 文件源路径
     */
    private String src;

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getGetter() {
        return getter;
    }

    public void setGetter(String getter) {
        this.getter = getter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSentTime() {
        return sentTime;
    }

    public void setSentTime(String sentTime) {
        this.sentTime = sentTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public byte[] getFileBytes() {
        return fileBytes;
    }

    public void setFileBytes(byte[] fileBytes) {
        this.fileBytes = fileBytes;
    }

    public int getFileLen() {
        return fileLen;
    }

    public void setFileLen(int fileLen) {
        this.fileLen = fileLen;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }
}
